<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>系统首页</title>
<!-- 下载并引入jquery easyUI -->
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/material/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/color.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.8.8/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.8.8/jquery.easyui.min.js"></script>

</head>
<body class="easyui-layout">
	<div id="cc" class="easyui-layout"
		style="width: 100%; heith: 100%; min-height: 600px;">
		<div data-options="region:'north',border:false" style="height: 80px;">
			<%-- <img alt="logo"
				src="${pageContext.request.contextPath}/images/logo1.PNG"
				style="padding: 20px 0 0 20px;"> --%>
			<img alt="logo"
				src="${pageContext.request.contextPath}/images/logo1.png"
				style="padding: 20px 0 0 20px; height: 70px; width: 150px"> <img
				alt="logo" src="${pageContext.request.contextPath}/images/logo2.jpg"
				style="padding: 20px 0 0 20px; height: 70px; width: 65%">

			<div style="float: right; padding-top: 50px; padding-right: 20px;">
				欢迎使用汽车销售管理系统：${SESSION_EMP.empName},<a
					href="${pageContext.request.contextPath}/news/allnews"
					target="_blank">进入前台</a>
			</div>
		</div>
		<div data-options="region:'west',title:'菜单',split:true"
			style="width: 200px;">
			<div id="aa" class="easyui-accordion"
				data-options="fit:true,border:false">

				<div title="基本信息管理" data-options="iconCls:'icon-man',selected:true"
					style="overflow: auto; padding: 10px;">
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('员工管理','  ${pageContext.request.contextPath}/emp/index')">员工管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('汽车信息管理',' ${pageContext.request.contextPath}/car/index')">汽车信息管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('汽车类型管理','  ${pageContext.request.contextPath}/typr/index')">汽车类型管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('汽车品牌管理','  ${pageContext.request.contextPath}/brand/index')">汽车品牌管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('仓库管理','  ${pageContext.request.contextPath}/storage/index')">仓库管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('供应商','  ${pageContext.request.contextPath}/provider/index')">供应商</a><br />
				</div>


				<div title="库存管理" data-options="iconCls:'icon-more',selected:true"
					style="overflow: auto; padding: 10px;">
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('入库信息管理','${pageContext.request.contextPath}/instorage/index')">入库信息管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('出库信息类型管理','${pageContext.request.contextPath}/outstorage/index')">出库信息管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('库存查询','${pageContext.request.contextPath}/outstorage/index')">库存查询</a><br />
				</div>

				<div title="客户管理" data-options="iconCls:'icon-ok',selected:true"
					style="overflow: auto; padding: 10px;">
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('客户管理','${pageContext.request.contextPath}/client/index')">客户管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('客户反馈管理','${pageContext.request.contextPath}/feedback/index')">客户反馈管理</a><br />
				</div>

				<div title="进货管理" data-options="iconCls:'icon-save',selected:true"
					style="overflow: auto; padding: 10px;">
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('进货管理','${pageContext.request.contextPath}/stock/index')">进货管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('退货管理','${pageContext.request.contextPath}/restock/index')">退货管理</a><br />
				</div>
				<div title="销售管理" data-options="iconCls:'icon-print',selected:true"
					style="overflow: auto; padding: 10px;">
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('销售管理','${pageContext.request.contextPath}/sale/index')">销售管理</a><br />
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('客户退货管理','${pageContext.request.contextPath}/resale/index')">客户退货管理</a><br />
				</div>

				<div title="公告管理" data-options="iconCls:'icon-tip',selected:true"
					style="overflow: auto; padding: 10px;">
					<a id="btn" href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true"
						onclick="open_menu('公告管理','${pageContext.request.contextPath}/affiche/index')">公告管理</a><br />
				</div>



				<div title="系统管理" data-options="iconCls:'icon-reload'"
					style="padding: 10px;">
					<a href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true">修改密码</a> <br> <a
						href="javascript:void(0);" class="easyui-linkbutton"
						data-options="plain:true">刷新系统缓存</a> <br> <a
						href="${pageContext.request.contextPath}/emp/logout"
						class="easyui-linkbutton" data-options="plain:true">退出系统</a>
				</div>

			</div>
		</div>

		<div data-options="region:'center',border:false,plain:true">
			<div id="tt" class="easyui-tabs" fit=true>
				<div title="首页" style="text-align: center; font-size: 24px;">
					<p>欢迎来到汽车销售管理系统</p>
				</div>
			</div>
		</div>
	</div>
	<div style="height: 40px; text-align: center; font-size: 12px;">
		<p>版权所有,&copy;2016-2018</p>
	</div>


	<script type="text/javascript">
		function open_menu(titleName, menuUrl) {
			if ($("#tt").tabs("exists", titleName)) {
				$("#tt").tabs("select", titleName);
			} else {
				$('#tt').tabs('add', {
					title : titleName,
					href : menuUrl,
					closable : true
				});
			}
		}
	</script>

</body>
</html>